{validate form="add_url_single" id="v_longurl_valid" append="single_error" message="Long URL must be valid."}
{validate form="add_url_single" id="v_longurl_host" append="single_error" message="You cannot create a redirection to this service."}
{validate form="add_url_single" id="v_keyword_valid" append="single_error" message="The custom keyword can only contain letters, numbers, underscores and dashes."}
{validate form="add_url_single" id="v_keyword_unique" append="single_error" message="The generated keyword or the one you specified already exists (which is rare when generating one, but it happens), so try again."}
{validate form="add_url_multiple" id="v_listurl_empty" append="multiple_error" message="List of URLs cannot be empty."}
{validate form="add_url_multiple" id="v_listurl_valid" append="multiple_error" message="One or many URLs in the list were found to be invalid."}
{validate form="add_url_multiple" id="v_listurl_host" append="multiple_error" message="One or many URLs in the list were found with a hostname used by this service."}
{validate form="add_url_upload" id="v_uploadurl_type" append="upload_error" message="File containing URLs must be a text file only."}
{validate form="add_url_upload" id="v_uploadurl_empty" append="upload_error" message="File cannot be empty."}
{validate form="add_url_upload" id="v_uploadurl_valid" append="upload_error" message="One or many URLs in the file were found to be invalid."}
{validate form="add_url_upload" id="v_uploadurl_host" append="upload_error" message="One or many URLs in the file were found with a hostname used by this service."}
{validate form="add_url_options" id="v_cloak_regexp" append="error" message="Cloak option must be valid."}
{validate form="add_url_options" id="v_maxhits_valid" append="error" message="Maximum number of hits must be an integer."}
{validate form="add_url_options" id="v_expiration_valid" append="error" message="Expiration date must be valid."}
{validate form="add_url_options" id="v_disabled_regexp" append="error" message="Disable option must be valid."}
{if $add_button}
	<div class="failed">
		{if $entry == 'single'}
			{foreach $single_error as $message}
				{$message}<br />
			{/foreach}
		{elseif $entry == 'multiple'}
			{foreach $multiple_error as $message}
				{$message}<br />
			{/foreach}
		{elseif $entry == 'upload'}
			{foreach $upload_error as $message}
				{$message}<br />
			{/foreach}
		{/if}
		{foreach $error as $message}
			{$message}<br />
		{/foreach}
	</div>
{/if}